﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IDAL
{
    public partial interface IT_RoleDAL
    {
        /// <summary>
        ///  获取角色数量
        /// </summary>
        /// <param name="roleName"></param>
        /// <param name="smCode"></param>
        /// <returns></returns>
        int GetRoleCount(string roleName, string smCode);
        /// <summary>
        /// 获取待分配角色用户数据
        /// </summary>
        /// <param name="role_id"></param>
        /// <param name="unit_code"></param>
        /// <returns></returns>
        List<HCQ2_Model.SelectModel.ListBoxModel> GetWaitRoleDataByPerson(int role_id,string unit_code=null);
        /// <summary>
        ///  获取已分配角色用户数据
        /// </summary>
        /// <param name="role_id"></param>
        /// <returns></returns>
        List<HCQ2_Model.SelectModel.ListBoxModel> GetFineRoleDataByPerson(int role_id);
        /// <summary>
        ///  排除被删除的用户角色设置
        /// </summary>
        /// <param name="role_id"></param>
        /// <param name="userid"></param>
        void DelBatchRole(int role_id,string userid);
    }
}